package com.huarui.employee.service;

import java.util.Map;

import org.ewaf.framework.service.BaseService;

import com.huarui.employee.dao.IAddingEmployeeDao;
import com.huarui.employee.dao.impl.AddingEmployeeDaoImpl;
import com.huarui.employee.model.AddingEmployee;

public class AddingEmployeeService  extends BaseService{

	private IAddingEmployeeDao getDao() {
		return (AddingEmployeeDaoImpl) dao;
	}

	
	@SuppressWarnings("unchecked")
	public AddingEmployee getByEmailAndCompanyId(Map map){
		
		return this.getDao().getByEmailAndCompanyId(map);
	}
	
	public AddingEmployee getByActivateCode(String activateCode){
		
		return this.getDao().getByActivateCode(activateCode);
	}
}
